package com.prime.cn.config;

import java.util.LinkedHashMap;

public class FilterChainDefinitionMapBuilder {
    public LinkedHashMap<String,String> buildFilterChainDefinitionMap(){
        LinkedHashMap<String,String> lhm=new LinkedHashMap();
        lhm.put("/index","anon");
        lhm.put("/fail","anon");
        lhm.put("/dologin","anon");
        lhm.put("/logout","logout");
//        lhm.put("/main/**","authc");
//        lhm.put("/bonus","roles[user,admin]");
//        lhm.put("/info","roles[user]");
        lhm.put("/**","authc");
        return lhm;
    }
}
